package cn.steam.lock;

import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @author zhang jintao on 2022/05/19
 **/
@Service
public class RedisLock implements Lock {

    @Override
    public boolean lock(String key) {
        return true;
    }

    @Override
    public boolean lock(String key, int expire, TimeUnit timeUnit) {
        return false;
    }

    @Override
    public void unlock(String key) {

    }
}
